package com.wanmait.translate.system.mapper;

import com.wanmait.translate.configuration.other.SqlDeep;
import com.wanmait.translate.pojo.SystemPost;

import java.util.List;

public interface SystemPostMapper {
    @SqlDeep({SystemUserMapper.class, SystemDeptMapper.class})
    SystemPost getByPrimaryKey(Integer id);

    SystemPost getBaseByPrimaryKey(Integer id);

    @SqlDeep({SystemUserMapper.class, SystemDeptMapper.class})
    List<SystemPost> listByCondition(SystemPost post);

    @SqlDeep({SystemUserMapper.class})
    List<SystemPost> listByDeptId(Integer deptId);


    void save(SystemPost systemPost);

    void remove(Integer id);

    void update(SystemPost systemPost);

    List<Integer> getChildPost(Integer id);


}